﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Configuration;
using System.Linq;
using System.ServiceModel;
using System.Text;
using System.Threading.Tasks;

namespace ebMS3dotnet.Core.Configuration
{
    class EndpointElement:ConfigurationElement
    {
        [ConfigurationProperty("id", IsRequired = true)]
        public string ID { get { return (string)base["id"]; } }
        
        [ConfigurationProperty("address",IsRequired=true)]
        public string Address { get { return (string)base["address"]; } }

        [ConfigurationProperty("soapVersion", DefaultValue = "Soap11")]
        [TypeConverter(typeof(SoapVersionConverter))]
        public EnvelopeVersion SOAPVersion
        {
            get { return (EnvelopeVersion)base["soapVersion"]; }
        }
    }
}
